const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const fzLocal = {
	scenes_recall_scene_65029: {
        cluster: '65029',
        type: ['attributeReport'],
        convert: (model, msg, publish, options, meta) => {
			
           return {action: `scene_${msg.data[0]}`};
        },
    },
};


const definition  = {
        zigbeeModel: ['005f0c3b'],
        model: 'GMHY-U86KCJ-ZP',
        vendor: 'REXENSE',
        description: 'Smart 6 key scene wall switch',
        fromZigbee: [fzLocal.scenes_recall_scene_65029],
        exposes: [e.action(['scene_1', 'scene_2', 'scene_3', 'scene_4', 'scene_5', 'scene_6'])],
        toZigbee: [],
};

module.exports = definition;